'use strict';

/**
 * @param {Egg.Application} app - egg application
 */


module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);

  //用户从数据库读取note
  router.get('/data', controller.note.getMes);

  //登录
  router.post('/login', controller.user.login);
  router.post('/register', controller.regis.reg);



  //用户增加note
  router.post('/add', controller.add.addMes);
  router.post('/del', controller.del.delMes);

};
